package top.lishuoboy.https.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author lishuoboy
 * @date 2022/4/20 20:00
 */
@RestController
public class HttpsController {
    @GetMapping("hello")
    private String hello(HttpServletRequest req) {
        return "hello！ 端口：" + req.getServerPort();
    }
}
